//
//  ICMCarInfoEditView.h
//  ICrEAM
//
//  Created by xphone on 16/11/23.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMTitleTextFeildView.h"
#import "ICMDatePickerView.h"
#import "ICMCarModel.h"
#import "PACACalendarView.h"
@protocol ICMCarInfoEditViewDelegate<NSObject>
-(void)syncVehicleInfoWithVin:(NSString *)vin;

@end
@class ICMCarModel;
@interface ICMCarInfoEditView : UIView<ICMDatePickerViewDelegate,ICMTitleTextFeildViewDelegate>

@property(nonatomic,weak)id<ICMCarInfoEditViewDelegate>delegate;
@property (nonatomic, strong) ICMTitleTextFeildView *carVINView;
@property (nonatomic, strong) ICMTitleTextFeildView *carBrandView;
@property (nonatomic, strong) ICMTitleTextFeildView *carNumView;
//购车发票日期
@property (nonatomic, strong) ICMTitleTextFeildView *carInvoiceView;
@property (nonatomic, strong) UIButton *carInvoiceBtn;
@property (nonatomic, strong) PACACalendarView *carInvoiceDatePickerView;
@property (nonatomic, strong) NSDate *carInvoiceSelectedDate;

@property (nonatomic, strong) ICMTitleTextFeildView *carXiView;
@property (nonatomic, strong) ICMTitleTextFeildView *carTypeView;
@property (nonatomic, strong) ICMTitleTextFeildView *carUsePropertyView;
@property (nonatomic, strong) ICMTitleTextFeildView *carPropertyView;

@property (nonatomic, strong) ICMTitleTextFeildView *carMyComBuyCarView;
@property (nonatomic, strong) ICMTitleTextFeildView *carUseTypeView;

//保修结束日期
@property (nonatomic, strong) ICMTitleTextFeildView *carGuaranteeView;
@property (nonatomic, strong) UIButton *carGuaranteeBtn;
@property (nonatomic, strong) PACACalendarView *carGuaranteeDatePickerView;
@property (nonatomic, strong) NSDate *carGuaranteeSelectedDate;

@property (nonatomic, strong) ICMTitleTextFeildView *carKMView;

//下次验车日期
@property (nonatomic, strong) ICMTitleTextFeildView *carNextTestView;
@property (nonatomic, strong) UIButton *carNextTestBtn;
@property (nonatomic, strong) PACACalendarView *carNextTestDatePickerView;
@property (nonatomic, strong) NSDate *carNextTestSelectedDate;

//data
@property (nonatomic, strong) ICMCarModel *carModel;

//品牌车系车型
@property (nonatomic, strong) NSArray *carBrandDataArray;

- (void)setupData;

@end
